//
//  ReadserialModel.m
//  product_B
//
//  Created by lanou on 16/5/28.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "ReadserialModel.h"

@implementation ReadserialModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        _myID = value;
    }
}

+ (NSMutableArray *)readDetailSerialModelWithConfigure:(NSDictionary *)dic{
    NSMutableArray *modelArray = [NSMutableArray array];
    NSArray *dataArray = dic[@"data"];
    for (NSDictionary *dic  in dataArray) {
        ReadserialModel *model = [[ReadserialModel alloc]init];
        [model setValuesForKeysWithDictionary:dic];
        [modelArray addObject:model];
    }
    return modelArray;
}
@end
